<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
</head>
<body>
				<c:forEach items="${alist }" var="a" varStatus="status">
					
					<c:if test="${status.index==0 }"><div class="radio-line radio-box active"></c:if>
					<c:if test="${status.index!=0 }"><div class="radio-line radio-box "></c:if>	
					
							<label class="radio-label ep"
								title="">
								<input name="addr"  value="0" autocomplete="off"
								type="radio"><i class="iconfont icon-radio"></i> ${a.uaddress}&nbsp&nbsp&nbsp&nbsp ${user.uphone}&nbsp&nbsp&nbsp&nbsp（${a.aname}收）
							</label>
							<c:if test="${a.adefault==1}">
						 <a href="javascript:void(0)" class="default">默认地址</a>
						</c:if>
						<c:if test="${a.adefault==0}">
						<a href="javascript:void(0)" class="default" onclick="updateDefault(${status.index})">设为默认地址</a>
							
						</c:if>			
						</div>
					</c:forEach>
</body>
</html>
